<h1>Listing domains</h1>

<table>
  <tr>
    <th>Table</th>
    <th>Domainname</th>
    <th>Protocol</th>
    <th>Hostname</th>
    <th>Port</th>
    <th>Path</th>
    <th>Hit</th>
  </tr>

<% for domain in @domains %>
  <tr>
    <td><%=h domain.table_id %></td>
    <td><%=h domain.domainName %></td>
    <td><%=h domain.protocol %></td>
    <td><%=h domain.hostName %></td>
    <td><%=h domain.port %></td>
    <td><%=h domain.path %></td>
    <td><%=h domain.hit %></td>
    <td><%= link_to 'Show', domain %></td>
    <td><%= link_to 'Edit', edit_domain_path(domain) %></td>
    <td><%= link_to 'Destroy', domain, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New domain', new_domain_path %>
